#include "client.h"

int main(int argc, char* argv[]) {
    if (argc != 4) {
        std::cerr << "Usage: " << argv[0] << " <server_ip> <server_port> <num_connections>" << std::endl;
        return 1;
    }

    const char* ip = argv[1];
    int port = atoi(argv[2]);
    int numConnections = atoi(argv[3]);

    EchoClient client(ip, port, numConnections);
    if (!client.init()) {
        return 1; // 初始化失败
    }
    client.start(); // 启动测试

    return 0;
}
